package com.example.demo.entity;

import java.io.Serializable;
import java.util.Objects;

public class BedType implements Serializable {
    private Integer bid;
    private String  bname;
    private String  status;

    public BedType(Integer bid, String bname, String status) {
        this.bid = bid;
        this.bname = bname;
        this.status = status;
    }

    public BedType() {
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "BedType{" +
                "bid=" + bid +
                ", bname='" + bname + '\'' +
                ", status='" + status + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BedType bedType = (BedType) o;
        return Objects.equals(bid, bedType.bid) && Objects.equals(bname, bedType.bname) && Objects.equals(status, bedType.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(bid, bname, status);
    }
}
